<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>



<?php 
 $server = "localhost";
 $username = "karan-tester";
 $password = "1234";
 $database = "ipdb";
 
 // Connects to your Database 
 $connect = mysql_connect($server, $username, $password) or die ("Could not connect: " . mysql_error());
 mysql_select_db($database, $connect);
 
 //mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error()); 
 //mysql_select_db("Database_Name") or die(mysql_error()); 
 
 $data = mysql_query("SELECT * FROM comfortleveltable") 
 or die(mysql_error()); 
 print "<table border cellpadding=3>"; 
 while($info = mysql_fetch_array( $data )) 
 { 
 print "<tr>"; 
 print "<th>Location:</th> <td>".$info['Location'] . "</td> "; 
 print "<th>User Feedback:</th> <td>".$info['Userfeedback'] . " </td></tr>"; 
 } 
 print "</table>"; 
 mysql_close($connect);
 ?> 
 
 
 
</body>
</html>